<template>
	<!-- <article-type03 v-for="info in infos" :info="info"></article-type03> -->
	<book v-for="info in infos" :info="info" :bookid="info.id" type="favorite"></book>
</template>
<script>
	import {getFavorite} from './../../js/data'
	// import ArticleType03 from './../article/ArticleType03'
	import Book from './../find/Book'
	export default {
		components: {
			// ArticleType03,
			Book
		},
		data: function () {
			return {
				infos: getFavorite(this.favorite)
			}
		},
		vuex: {
			getters: {
				favorite: state => state.book.favorite
			}
		},
		ready: function () {
			console.log(this.infos, this.favorite)
		}
	}
</script>